﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.ComponentModel;
using ANGFLib;

namespace ANGF
{
    /// <summary>
    /// WpfSimpleMenuUserControl.xaml の相互作用ロジック
    /// </summary>
    public partial class WpfSimpleMenuUserControl : UserControl, INotifyPropertyChanged
    {
        public ObservableCollection<WpfMenuItem> Buttons { get; set; }
        public WpfSimpleMenuUserControl()
        {
            InitializeComponent();
            DataContext = this;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {

        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        internal void GetSuggestedSize(out float width, out float height)
        {
            width = 0;
            height = 0;
            //foreach (var listviewItem in this.menuItemsListView.content.Items)
            //{
            //    var button = listviewItem;
                //width = Math.Max(width, s.Width);
                //height += s.Height;
            //}
        }
    }
}
